//
//  ZYGCDTimer.h
//  OC_Principle
//
//  Created by wangzhipan on 2025/2/28.
//

#import <Foundation/Foundation.h>

typedef NSString ZYTimerTask;
NS_ASSUME_NONNULL_BEGIN

@interface ZYGCDTimer : NSObject
+ (nullable ZYTimerTask *)scheduleTimerWithTarget:(id)target
                              selector:(SEL)sel
                                 delay:(NSTimeInterval)delay
                              interval:(NSTimeInterval)interval
                                repeat:(BOOL)repeat
                            isMainThread:(BOOL)isMainThread;

+ (void)cancelTask:(ZYTimerTask *)task;
@end

NS_ASSUME_NONNULL_END
